package top.bluesword.laboratory.model;

import jakarta.persistence.Embedded;
import jakarta.persistence.Entity;
import jakarta.persistence.EntityListeners;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.envers.AuditOverride;
import org.hibernate.envers.Audited;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

/**
 * 旅程
 * @author 李林峰
 */
@EntityListeners(AuditingEntityListener.class)
@AuditOverride(forClass = BaseData.class)
@Audited
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
public class Journey extends BaseData {

    @Embedded
    private OffsetTimeSpan timeSpan;

}
